<?php
class Person{
    public $name;
    public $age;
    public $sex;





    public function say(){
        echo"我的名字:{$this->name},年龄:{$this->age},性别:{$this->sex}";
    }
}

$my=new Person();
    $my->name='111';
    $my->age='222';
    $my->sex='333';
    $my->say();
?>